// ShowFriendDialog.cpp : implementation file
//

#include "Cmn.h"


// CShowFriendDialog dialog

IMPLEMENT_DYNAMIC(CShowFriendDialog, CDialog)

	CShowFriendDialog::CShowFriendDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CShowFriendDialog::IDD, pParent)
{

}

CShowFriendDialog::~CShowFriendDialog()
{
}

void CShowFriendDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CShowFriendDialog, CDialog)
	ON_WM_PAINT()
END_MESSAGE_MAP()

void CShowFriendDialog::OnPaint(){
	CPaintDC DC(this);
	int x=0;
	char* i=strlen(_string_)+_string_;
	char* temp;
	while(1){
		if(_string_==i)break;
		for(int i=0;i<strlen(_string_);i++){
			if(_string_[i]==' '){
				_string_[i]=0;
				temp=_string_;
				_string_=_string_+i+1;
				break;
			}
		}
	DC.TextOut(0,x,temp);
	x+=20;
	}
}
// CShowFriendDialog message handlers
